/*
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.aliyuncs.eiam.model.v20211201;

import com.aliyuncs.RpcAcsRequest;
import com.aliyuncs.http.ProtocolType;
import com.aliyuncs.http.MethodType;

/**
 * @author auto create
 * @version 
 */
public class CreateDomainRequest extends RpcAcsRequest<CreateDomainResponse> {
	   

	private Filing filing;

	private String instanceId;

	private String domain;
	public CreateDomainRequest() {
		super("Eiam", "2021-12-01", "CreateDomain", "eiam");
		setProtocol(ProtocolType.HTTPS);
		setMethod(MethodType.POST);
	}

	public Filing getFiling() {
		return this.filing;
	}

	public void setFiling(Filing filing) {
		this.filing = filing;	
		if (filing != null) {
			
				putQueryParameter("Filing.IcpNumber" , filing.getIcpNumber());
		}	
	}

	public String getInstanceId() {
		return this.instanceId;
	}

	public void setInstanceId(String instanceId) {
		this.instanceId = instanceId;
		if(instanceId != null){
			putQueryParameter("InstanceId", instanceId);
		}
	}

	public String getDomain() {
		return this.domain;
	}

	public void setDomain(String domain) {
		this.domain = domain;
		if(domain != null){
			putQueryParameter("Domain", domain);
		}
	}

	public static class Filing {

		private String icpNumber;

		public String getIcpNumber() {
			return this.icpNumber;
		}

		public void setIcpNumber(String icpNumber) {
			this.icpNumber = icpNumber;
		}
	}

	@Override
	public Class<CreateDomainResponse> getResponseClass() {
		return CreateDomainResponse.class;
	}

}
